#ifndef REMOTEXMLCONFIG_H
#define REMOTEXMLCONFIG_H

#include <QXmlDefaultHandler>
#include "filedispatcher.h"

class RemoteXMLConfig : public QXmlDefaultHandler
{
public:
	RemoteXMLConfig(FileDispatcher *dsp);
	bool startElement(const QString &namespaceURI,
						const QString &localName,
						const QString &qName,
						const QXmlAttributes &attributes);
	bool endElement(const QString &namespaceURI,
					const QString &localName,
					const QString &qName);
	bool characters(const QString &str);
	bool fatalError(const QXmlParseException &exception);
private:
	FileDispatcher *dispatcher;
};

#endif // REMOTEXMLCONFIG_H
